#include<stdio.h>
int main(void)
{
    int petal_number[10] = {42, 45, 41, 40, 48, 49, 45, 41, 44, 43};
    int even_rose, odd_rose;
    float odd_percent, even_percent;
    int i;
    for (i = 0; i < 10; i ++)
    {
        if(petal_number[i] % 2 == 1)
        {
            odd_rose ++;
        }
        else
        {
            even_rose ++;
        }
        
    }
    printf("Rose even petal is %d\n", even_rose);
    printf("Rose odd petal is %d\n", odd_rose);
    even_percent = (float)even_rose / ((float)even_rose + (float)odd_rose);
    odd_percent = (float)odd_rose / ((float)even_rose + (float)odd_rose);
    printf("Rose even percent is %.2f\n", even_percent);
    printf("Rose odd percent is %.2f\n", odd_percent);
    return 0;
}